package session08.MyTest;

import javax.swing.*;
import java.awt.*;

public class Photo extends JPanel {

    private First first;
    private Second second;
    private Third third;

    public Photo() {
        //this.setBackground(Color.GREEN);
        this.setLayout(new CardLayout());

        this.first = new First();
        this.second = new Second();
        this.third = new Third();

        this.add("first", this.first);
        this.add("second", this.second);
        this.add("third", this.third);
    }
}
